﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DockingLib.Docking;

namespace UIAStudio
{
    public class DockableDocument : DockContent
    {
        private string m_filePath = null;

        private static List<DockableDocument> m_documents = new List<DockableDocument>();

        public DockableDocument(string filePath)
        {
            m_filePath = filePath;
            Tag = filePath;
            HideOnClose = false;
            DockAreas = DockAreas.Document;
            m_documents.Add(this);
        }

        ~DockableDocument()
        {
            m_documents.Remove(this);
        }

        public string Filepath
        {
            get
            {
                return m_filePath;
            }
        }
    }
}
